package cn.lixu.system.domain;

import cn.lixu.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author LiXu
 * @date 2022/08/02 0002 10:36:01
 */
@Data
public class Menu extends BaseDomain {
    private String name;
    private String component;
    private String url;
    private String icon;
    private Integer index;
    private Long parent_id;
    private String intro;
    private Integer state;

    //父级菜单
    private Menu parent;
    //当前部门下的子部门
    //子集部门
    //用于封装当前部门的子部门
    //部门树最后一级没有数据就不显示
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Menu> children = new ArrayList<>();
}
